package com.team.RunsFast_Api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.runsfast.entity.CouponInfo;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface CouponInfoDao extends BaseMapper<CouponInfo> {

    @Update("update t_couponinfo set flag=2 where flag=1 and id=#{id}")
    int updateCouponInfo(long id);

}
